<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	    <meta content="telephone=no" name="format-detection" />
		<title>我的佣金</title>
		<link href="{{asset('/mobile/css/style.css')}}" rel="stylesheet" type="text/css">
	</head>
	<style type="text/css">
		body{
			background-color: #F1F1F1;
		}
		.top-img{
			width: 100%;
		}
		.li{
			height: 4rem;
			border-bottom: 1px solid #eeeeee;
			overflow: hidden;
			background-color: #FFFFFF;
		}
		.li-left{
			float: left;
			margin-top: 0.5rem;
			margin-left: 1rem;
		}
		.li-right{
			float: right;
			margin-right: 1rem;
			line-height: 4rem;
		}
		.li-left-1{
			font-size: 1.1rem;
			line-height: 1.5rem;
		}
		.li-left-2{
			color: #747474;
			line-height: 1.5rem;
			font-size: 0.9rem;
		}
		.red{
			color: #D42400;
			display: inline-block;
			vertical-align: middle;
			font-size: 1.2rem;
		}
		.arrow{
			height: 1rem;
			display: inline-block;
			vertical-align: middle;
			margin-left: 6px;
		}
		
	</style>
	<body>
		<img class="top-img" src="{{asset('/imgs/top1.png')}}"/>
		<div class="list">
			<div class="li" data-id="1" onclick="window.location.href='/mobile/superagent/withdraw/{{$agent->id}}'">
				<div class="li-left">
					<div class="li-left-1">可提现</div>
					<div class="li-left-2">已完成的交易</div>
				</div>
				<div class="li-right">
					<div class="red">{{$agent->money}}</div>
					<img class="arrow" src="{{asset('/imgs/arrow.png')}}"/>
				</div>
			</div>
			<div class="li" data-id="2" onclick="window.location.href='/mobile/superagent/withdraw_log/{{$agent->id}}'">
				<div class="li-left">
					<div class="li-left-1">累积提现</div>
					<div class="li-left-2">已完成的提现</div>
				</div>
				<div class="li-right">
					<div class="red">{{$agent->superTotalWithdraw()}}</div>
					<img class="arrow" src="{{asset('/imgs/arrow.png')}}"/>
				</div>
			</div>
		</div>
		
	<script type="text/javascript" src="{{asset('/mobile/js/jquery-1.8.3.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/Inertia.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/backHome.js')}}"></script>
	<script type="text/javascript">
		$('.li').on('touchstart', function() {
			var myid = $(this).attr('data-id')
			console.log('跳转--' + myid)
		})
	</script>
	</body>
</html>
